package com.test.config;

import com.test.pojo.Dog;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @Aurher: QiaoHang
 * @Description:
 * @Data: 2019/9/13 14:04
 * @Modified By:
 */
@Configuration
@ComponentScan(value = {"com.test.postprocesser"})
public class PrePostConfig {

    @Bean(name = "dog",initMethod = "myInitDog",destroyMethod = "myDestoryDog")
    public Dog initDog(){
        return new Dog();
    }
}
